<%
	/**
	 用户注册界面
	 **/
%>
<%@ page language="java" pageEncoding="UTF-8" buffer="128kb"
	contentType="text/html; charset=UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/pages/safeai/view/common/taglib.jsp"%>
<head>
<title>
用户注册
</title>

<link rel="stylesheet" href="/safeai/css/safeai/customeViewStyle.css"
	type="text/css" />
<link rel="stylesheet"
	href="/safeai/css/safeai/customeInfoListStyle.css" type="text/css" />
</head>
<body>
<%@ include file="/pages/safeai/view/common/head.jsp"%>



<form action="registe.do?method=registe" method="post" name="registeForm" target="_top">

<DIV class=block>
<DIV class=PassportWrap>
<FORM class=signupform method=post action=?passport-create.html>
<DIV class=RegisterWrap>
<H4>
用户注册
</H4>
<DIV class=intro>
<DIV class=customMessages>
欢迎来到我们网站，如果您是新用户，请填写下面的表单进行注册
<BR>
</DIV>
</DIV>
<DIV class=form>
<INPUT type=hidden name=forward>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<tr>
<th>
</th>
<td/>
  
  
   <html:messages id="msg" message="true">
           <font color="red"> ${msg} </font>
    </html:messages>

</td>
</tr>
<TR>
<TH>
<I>
*
</I>
用户名：
</TH>
<TD>
<INPUT id=reg_user class="inputstyle _x_ipt" onchange=nameCheck(this)
	maxLength=50 type=text name='customer.username' required="true" vtype="required" />
<SPAN></SPAN>
</TD>
</TR>
<TR>
<TH>
<I>
*
</I>
密码：
</TH>
<TD>
<INPUT id=reg_passwd class="x-input inputstyle" value="" type=password 
	name='customer.password' required="true" autocomplete="off" />
</TD>
</TR>
<TR>
<TH>
<I>
*
</I>
确认密码：
</TH>
<TD>
<INPUT id=reg_passwd_r class="x-input inputstyle" value="" type=password
	name='customer.brand' required="true" autocomplete="off" />
</TD>
</TR>
<TR>
<TH>
<I>
*
</I>
电子邮箱：
</TH>
<TD>
<INPUT id=reg_email class="inputstyle _x_ipt" type=text name='customer.email'
	required="true" vtype="email" />
</TD>
</TR>
<TR>
<TH>
<I>
*
</I>
验证码：
</TH>
<TD>
<INPUT id=iptsingup class="x-input inputstyle" size=8 type=text
	name='customer.role' required="true" vtype="digits" autocomplete="off" />

<img   border=0   src= "random.jsp?slave="+Math.random() /> 
</TD>
</TR>
<TR>
<TH></TH>
<TD>
<LABEL style="TEXT-ALIGN: left; WIDTH: auto; FONT-WEIGHT: normal"
	class=nof for=license>
<INPUT id=license value=agree CHECKED type=checkbox name=license>
我已阅读并同意
<A id=terms_error class=lnk href="?page-license.html" target=_blank>
<SPAN id=terms_error_sym class=FormText>
会员注册协议
</SPAN>
</A>
和
<A id=privacy_error class=lnk href="?page-privacy.html" target=_blank>
<SPAN id=privacy_error_sym class=FormText>
隐私保护政策
</SPAN>
</A>
。
</LABEL>
</TD>
</TR>
<TR>
<TH></TH>
<TD>
<INPUT class="actbtn btn-register" value=注册新用户 type="submit"  onclick="return registe()"/>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
</DIV>
</FORM>
</DIV>
</DIV>
</form>


<%@ include file="/pages/safeai/view/common/foot.jsp"%>

<script>

function registe(){
	var username = document.getElementById("customer.username").value;
	var password = document.getElementById("customer.password").value;
	var repwd = document.getElementById("customer.brand").value;
	
	if(null == username || 6 > username.length){
	    alert("用户名必须大于等于6位，请重新输入!");
	    document.getElementById("customer.username").focus();
	    return false;
	}
	
	if(null == password || 6 > password){
	    alert("密码大于等于6位，请重新输入!");
	    document.getElementById("customer.password").focus();
	    return false;
	}
	
	if(password !=repwd){
	    alert("密码不一致，请重新输入！");
	    return false;
	}
	
	return true;
	
}


</script>


</body>
</html>